import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { UserManagementComponent } from './user-management/user-management.component';
import { RoleManagementComponent } from './role-management/role-management.component';
import { MenuManagementComponent } from './menu-management/menu-management.component';
import { CompanyManagementComponent } from './company-management/company-management.component';
import { SiteManagementComponent } from './site-management/site-management.component';
import { ResourceManagementComponent } from './resource-management/resource-management.component';
import { ApiDocsComponent } from './api-docs/api-docs.component';
import { ModuleManagementComponent } from './module-management/module-management.component';
import { BaseTypeManagementComponent } from './base-type-management/base-type-management.component';

const routes: Routes = [
  // { path: '', loadChildren: './messageHub/message.module#MessageModule' },
  { path: 'user', component: UserManagementComponent },
  { path: 'role', component: RoleManagementComponent },
  { path: 'menu', component: MenuManagementComponent },
  { path: 'company', component: CompanyManagementComponent },
  { path: 'site', component: SiteManagementComponent },
  { path: 'resource', component: ResourceManagementComponent },
  { path: 'api-docs', component: ApiDocsComponent },
  { path: 'module', component: ModuleManagementComponent },
  { path: 'base-type', component: BaseTypeManagementComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SystemRoutingModule { }
